<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>记账本</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link href="__PUBLIC__/css/layui.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/css/admin.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/css/public.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/css/bootstrap.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="layui-conter">
    <div class="layui-col-md12">
        <div class="navigation">
            <span>行政></span><span>记账管理></span><span>记账本</span>
        </div>

        <div class="white-conter">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="title-blue"><b>记账本</b></div>
                    <div class="layui-card-body addPadding">
                        <form class="layui-form" action="" lay-filter="component-form-group">
                            <div class=" layui-row" style="margin-top: 20px">
                                <div class=" layui-col-xs3" style="width: 20%;">
                                    <label class="layui-form-label">收支类型：</label>
                                    <div class="layui-input-block">
                                        <select name="quiz1">
                                            <option value="" selected="">请选择</option>
                                            <foreach name="status" item="sl" key="kl">
                                                <option value="{$kl}" <if condition="$map.quiz1 eq $kl">selected</if> >{$sl}</option>
                                            </foreach>
                                        </select>
                                    </div>
                                </div>
                                <div class=" layui-col-xs3" style="width: 20%;">
                                    <label class="layui-form-label">账目类型：</label>
                                    <div class="layui-input-block">
                                        <select name="quiz2">
                                            <option value="" selected="">请选择</option>
                                            <foreach name="zmdata" item="szz" key="kzz">
                                                <option value="{$kzz}" <if condition="$map.quiz2 eq $kzz">selected</if> >{$szz}</option>
                                            </foreach>
                                        </select>
                                    </div>
                                </div>
                                <div class=" layui-col-xs3" style="width: 20%;">
                                    <label class="layui-form-label">入账日期：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="datesign" value="{$map.datesign}" id="datesign" lay-verify="date" placeholder="请选择"  class="layui-input">
                                    </div>
                                </div>
                                <div class=" layui-col-xs3" style="width: 20%;">
                                    <label class="layui-form-label">所在校区：</label>
                                    <div class="layui-input-block">
                                        <select name="quiz3">
                                            <option value="" selected="">请选择</option>
                                            <foreach name="xx" item="sx" key="kx">
                                                <option value="{$kx}" <if condition="$map.quiz3 eq $kx">selected</if> >{$sx}</option>
                                            </foreach>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline search-1" style="margin-left: 20px;">
                                    <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="" >搜索</button>
                                </div>
                            </div>
                            <div class="layui-row" style="margin-top: 20px">
                                <div class="layui-col-xs3" style="width: 20%;">
                                    <label class="layui-form-label">收支金额：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="money" value="{$map.money}" placeholder="请输入" class="layui-input" >
                                    </div>
                                </div>
                                <div class="layui-col-xs3" style="width: 20%;">
                                    <label class="layui-form-label">资金账户：</label>
                                    <div class="layui-input-block">
                                        <select name="quiz4">
                                            <option value="" selected="">请选择</option>
                                            <foreach name="zjdata" item="sa" key="ka">
                                                <option value="{$ka}" <if condition="$map.quiz4 eq $ka">selected</if> >{$sa}</option>
                                            </foreach>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-col-xs3" style="width: 40%;">
                                    <label class="layui-form-label">备注：</label>
                                    <div class="layui-input-block" style="width: 83.5%;"> 
                                        <input name="keyword" value="{$map.keyword}" type="text" placeholder="请输入" class="layui-input" >
                                    </div>
                                </div>
                            </div>
                        </form>

                    </div>
                    <div class="layui-inline search-1" style="margin-left: 20px;margin-bottom: 30px;margin-top: 30px;">
                        <a href="__CONTROLLER__/CashbookDetail"><button class="layui-btn layui-btn-sm layui-btn-danger" lay-submit="" >添加</button></a>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <table  class="layui-hide" id="test-table-operate" lay-filter="test-table-operate"></table>
                            <div class="layui-form layui-border-box layui-table-view" lay-filter="LAY-table-1">
                                <div class="layui-table-box" style="margin-bottom: 20px">
                                    <div class="layui-table-body layui-table-main">
                                        <table cellspacing="0" cellpadding="0" border="0" class="layui-table">
                                            <thead>
                                            <tr>
                                                <th data-field="cashbook-type" style="padding-left: 60px;"  >
                                                    <div class="layui-table-cell laytable-cell-cashbook-type">
                                                        <span>类型</span>
                                                    </div>
                                                </th>
                                                <th data-field="cashbook-time">
                                                    <div class="layui-table-cell laytable-cell-cashbook-time" align="center">
                                                        <span>日期</span>
                                                    </div>
                                                </th>
                                                <th data-field="cashbook-account">
                                                    <div class="layui-table-cell laytable-cell-cashbook-account" align="center">
                                                        <span>账目</span>
                                                    </div>
                                                </th>
                                                <th data-field="cashbook-money">
                                                    <div class="layui-table-cell laytable-cell-cashbook-money" align="center">
                                                        <span>金额</span>
                                                    </div>
                                                </th>
                                                <th data-field="cashbook-transfer">
                                                    <div class="layui-table-cell laytable-cell-cashbook-transfer" align="center">
                                                        <span>账户</span>
                                                    </div>
                                                </th>
                                                <th data-field="cashbook-school">
                                                    <div class="layui-table-cell laytable-cell-cashbook-school" align="center">
                                                        <span>校区</span>
                                                    </div>
                                                </th>
                                                <th data-field="cashbook-remark">
                                                    <div class="layui-table-cell laytable-cell-cashbook-remark" align="center">
                                                        <span>备注</span>
                                                    </div>
                                                </th>
                                                <th data-field="cashbook-op">
                                                    <div class="layui-table-cell laytable-cell-cashbook-op" align="center">
                                                        <span>操作员</span>
                                                    </div>
                                                </th>
                                                <th data-field="operation">
                                                    <div class="layui-table-cell laytable-cell-1-operation" align="center">
                                                        <span>操作</span>
                                                    </div>
                                                </th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <volist name="data" id="v">
                                             <tr data-index="1" class="">
                                                <td data-field="cashbook-type" style="padding-left: 60px;"  align="center">
                                                    <div class="layui-table-cell laytable-cell-cashbook-type">{$v.status}</div>
                                                </td>
                                                <td data-field="cashbook-time" align="center">
                                                    <div class="layui-table-cell laytable-cell-cashbook-time">{$v.date}</div>
                                                </td>
                                                <td data-field="cashbook-account" align="center">
                                                    <div class="layui-table-cell laytable-cell-cashbook-account">{$v.cname}</div>
                                                </td>
                                                <td data-field="cashbook-money" align="center">
                                                    <div class="layui-table-cell laytable-cell-cashbook-money">
                                                        ￥{$v.money}
                                                    </div>
                                                </td>
                                                <td data-field="cashbook-transfer" align="center">
                                                    <div class="layui-table-cell laytable-cell-cashbook-transfer">{$v.aname}</div>
                                                </td>
                                                <td data-field="cashbook-school" align="center">
                                                    <div class="layui-table-cell laytable-cell-cashbook-school">{$v.sname}</div>
                                                </td>
                                                <td data-field="cashbook-remark" align="center">
                                                    <div class="layui-table-cell laytable-cell-cashbook-remark">{$v.mark}
                                                    </div>
                                                </td>
                                                <td data-field="cashbook-op" align="center">
                                                    <div class="layui-table-cell laytable-cell-cashbook-op">{$v.operation}</div>
                                                </td>
                                                <td data-field="operation" align="center">
                                                        <div class="layui-table-cell laytable-cell-1-operation">
                                                            <a href="__CONTROLLER__/CashbookDetail/id/{$v.id}/ff/1"><button data-method="offset" data-type="auto"  class="img-but look-img"></button></a>
                                                            <a href="__CONTROLLER__/CashbookDetail/id/{$v.id}"><button data-method="offset" data-type="auto"  class="img-but edit-img" ></button></a>
                                                            <a href="__CONTROLLER__/CashbookDel/id/{$v.id}" href=""><button data-method="offset" data-type="auto"  class="img-but del-img"></button></a>
                                                        </div>
                                                </td>
                                            </tr>
                                            </volist>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="pagination" style="margin: 0 auto">
                                    {$page}
                                </div>
                            </div>

                            <script type="text/html" id="test-table-operate-barDemo">
                                <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
                                <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
                            </script>
                        </div>
                    </div>
                </div>
            </div>
        </div>


    </div>
</div>
</body>
<script src="__PUBLIC__/js/layui.all.js"></script>
<script src="__PUBLIC__/js/bootstrap.js"></script>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#birthday' //指定元素
        });
    });
</script>
</html>